package com._9xcloud.leaverequest.repository;

import com._9xcloud.leaverequest.domain.Teacher;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2015/5/12.
 */
public interface TeacherRepository extends JpaRepository<Teacher, Integer> {
    Teacher findByUsername(String username);

    List<Teacher> findByCollegeId(int collegeId);
}
